import request from '@/utils/request'

// 查询参股基金-管理基金列表
export function listGpManagementFunds(query) {
  return request({
    url: '/gp/gpManagementFunds/list',
    method: 'get',
    params: query
  })
}

// 查询参股基金-管理基金详细
export function getGpManagementFunds(id) {
  return request({
    url: '/gp/gpManagementFunds/' + id,
    method: 'get'
  })
}

// 保存参股基金-管理基金
export function saveGpManagementFunds(data) {
  return request({
    url: '/gp/gpManagementFunds/save',
    method: 'post',
    data: data
  })
}

// 删除参股基金-管理基金
export function delGpManagementFunds(id) {
  return request({
    url: '/gp/gpManagementFunds/' + id,
    method: 'delete'
  })
}

// 导出参股基金-管理基金
export function exportGpManagementFunds(query) {
  return request({
    url: '/gp/gpManagementFunds/export',
    method: 'get',
    params: query
  })
}

// // logo上传
export function uploadAvatar(data) {
  return request({
    url: '/gp/gpManagementFunds/avatar',
    method: 'post',
    data: data
  })
}
